package com.cloudlead.commonData.vo;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.commonData.action.validator.TbSysPermissionsValidatorGroup.*;

import javax.validation.constraints.Size;
import com.cloudlead.common.lang.annotation.Domain;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;

/**
 * TbSysPermissions is a Codegen vo type
 */
@Label("TbSysPermissions")
@Domain(domainClassName="com.cloudlead.commonData.entity.ETbSysPermissions")
public class TbSysPermissions extends AbstractIdEntity<String> {

    private static final long serialVersionUID =13155323646194L;    
    @Label("flag")
    @Size(max=8)
    private String flag;

    @NotNull(groups={Update.class})
    @Label("id")
    @Size(max=24)
    private String id;

    @Label("权限组")
    @Size(max=45)
    private String roleGroup;

    @Label("权限ID")
    @Size(max=45)
    private String roleID;

    @Label("权限名")
    @Size(max=45)
    private String roleName;

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRoleGroup() {
        return roleGroup;
    }

    public void setRoleGroup(String roleGroup) {
        this.roleGroup = roleGroup;
    }

    public String getRoleID() {
        return roleID;
    }

    public void setRoleID(String roleID) {
        this.roleID = roleID;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String toString() {
         return String.format("TbSysPermissions { flag : %s,id : %s,roleGroup : %s,roleID : %s,roleName : %s }",flag,id,roleGroup,roleID,roleName);
    }

}

